# -*- coding: utf-8 -*-
import os
import sys
import shutil

#import locale,sys
#print locale.getdefaultlocale()[1]
#print sys.getdefaultencoding()
#print sys.stdout.encoding
#print sys.stdin.encoding

from  ps.core.path import Path

def WPath(pathStr):

    return Path.parse(os.path.join(workspacePath,pathStr)) 

def clear():
    """删除: 工作目录 workPath"""
    assert os.path.split(workspacePath)[1]==ur'workspace'
    shutil.rmtree(workspacePath,True)
 
__projectPath=os.path.split(__file__)[0]
workspacePath=os.path.join(__projectPath,ur'workspace') 

os.chdir(__projectPath)
if not os.path.exists(workspacePath):#作为workspace,数据和临时存储区
    os.makedirs(workspacePath)
